package com.dzt.androidframework.network.mobapi.cook;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by M02323 on 2017/12/7.
 * <p>
 * http://apicloud.mob.com/v1/cook/category/query?key=appkey
 * http://apicloud.mob.com/v1/cook/menu/query?key=appkey&id=00100010070000000001
 * http://apicloud.mob.com/v1/cook/menu/search?key=appkey&cid=0010001007&page=1&size=20
 */

public interface CookService {
	String BASE_URL = "http://apicloud.mob.com/v1/cook/";
	String KEY = "2144415f81930";

	@GET("category/query")
	Observable<Category> queryCategory(@Query("key") String key);

	@GET("menu/search")
	Observable<CookMenu> queryCookMenu(@Query("key") String key,
									   @Query("cid") String id,
									   @Query("page") int page,
									   @Query("size") int size);

	@GET("menu/query")
	Observable<Cook> queryCook(@Query("key") String key,
							   @Query("id") String id);
}
